package com.ytjj.qmyx.mall.constants;

/**
 * 
 * @version 1.0
 *
 */
public interface RedisConstants {

    /**
     * redis key前缀
     */
    String REDIS_KEY_IMG = "portal:img:img";

    /**
     * 敏感内容
     */
    String PD_KEY = "portal:pd:pd";

    /**
     * 购物车
     */
    String CART_KEY = "cart:list:";

    /**
     * 购物车(v2)
     */
    String CART_KEY_V2 = "cartV2:list:";

    /**
     * 假用户
     */

    String FAKE_USER = "user:fake";

    /**
     * 获取系统配置
     */
    String SYS_CONFIG = "sys:config";

    /**
     * 热词
     */
    String HOT_SEARCH = "sys:hotsearch";

    /**
     * 热词
     */
    String HOT_SEARCH_V2 = "sys:hotsearchv2";

    /**
     * 订单评论
     */
    String ORDERS_COMMENT = "orders:comment";

    /**
     * 我的钱包第一天金额数额配置
     */
    String RED_ENVELOPE_CONFIG_FORMER = "envelope:config:former:";

    /**
     * 我的钱包非第一天金额数额配置
     */
    String RED_ENVELOPE_CONFIG_LATTER = "envelope:config:latter:";

    /**
     * 我的钱包红包领取记录
     */
    String RED_ENVELOPE_RECORD = "envelope:record:";

    /**
     * 优惠券
     */
    String USERS_COUPON = "users:coupon:";

    /**
     * 讲解中的商品
     */
    String EXPLAIN_PRODUCT = "live:product:explain:";

    /**
     * 文案配置
     */
    String COPYWRITER_CONFIG = "copywriter:config:";

    /**
     * cnzz
     */
    String CNZZ_CONFIG = "cnzz:";


    /**
     * 秒杀活动商品缓存
     */
    String ACTIVITY_PRODUCT = "activity:";


    /**
     * 首页缓存
     */
    String HOME_PRODUCT = "home:";

    /**
     * 首页缓存
     */
    String HOME_PRODUCT_V2 = "homev2:";

    /**
     * 专区对应分类缓存
     */
    String SPECID_LIST = "specid:";

    /**
     * 渠道
     */
    String CHANNEL = "channel:";

    /**
     * 商品详情缓存
     */
    String PRODUCT_DETAILS = "productDetails:";

    /**
     * 推广key
     */
    String EXTENSION = "extension:";

    /**
     * 推广key
     */
    String EXTENSION_APP = "extension:app:";

    /**
     * h5用户领取补贴体系key
     */
    String SUBSIDYKEY = "subsidykey:";

    /**
     * app用户领取补贴体系key
     */
    String SUBSIDYKEY_APP = "subsidykey:app:";
    /**
     * h5用户购物卡key
     */
    String SHOPPING_CARD_H5 = "shoppingcard:h5:";
    /**
     * h5用户购物狂欢节
     */
    String SHOPPING_CARNIVAL_H5 = "shoppingcarnival:h5:";
    /**
     * h5用户钱包抵扣key
     */
    String WALLET_DEDUCT_H5 = "walletdeduct:h5:";
    /**
     * h5 9.9生活馆key
     */
    String LIVING_CENTER = "livingcenter:h5:";

    /**
     * h5用户领取补贴体系key
     */
    String RECORD_SUBSIDYKEY = "record:subsidykey:";

    /**
     * app用户领取补贴体系key
     */
    String RECORD_SUBSIDYKEY_APP = "record:subsidykey:app:";

    /**
     * 商品List
     */
    String PRODUCTLIST = "productList:";

    /**
     * 年货列表 h5
     */
    String NEWYEAR_GOODS = "newYearGoods:";

    /**
     * 年货列表 app
     */
    String NEWYEAR_GOODS_APP = "newYearGoods:app";

    /**
     * 返现红包和已使用红包
     */
    String RETURN_COUPON = "returnCoupon:";

    /**
     * 返现红包和已使用红包
     */
    String RETURN_COUPON_APP = "returnCoupon:app:";

    /**
     * 抵扣金额 key  用户扣除抵扣余额 money
     */
    String DEDUCTION = "deduction:";

    /**
     * 商品详情图片缓存
     */
    String PRODUCT_DETAILS_IMG = "productDetailsImg:";

    /**
     * 商品详情页面按钮
     */
    String PAGE_BUTTON_BAR = "pageButtonBar:";

    /**
     * 商品店铺关注人数
     */
    String PRODUCT_BANKER_FOLLOW_NUM = "bankerFollowNum:";

    /**
     * 商品店铺品牌故事
     */
    String PRODUCT_BANKER_STORY = "productStory:";

    /**
     * 商品对应的品牌信息
     */
    String PRODUCT_BANKER_INFO = "productBankerInfo:";

    /**
     * 商品对应的供应商店铺信息
     */
    String PRODUCT_BANKER_SITE_INFO = "productBankerSiteInfo:";

    /**
     * 商品动态测评信息
     */
    String PRODUCT_DYNAMIC_INFO = "productDynamicInfo:";

    /**
     * 领取记录吧
     */
    String COUPONRECORD = "CouponRecord:";

    /**
     * 活动栏目
     */
    String ACTIVITY_COLUMN = "ActivityColumn:";


    String CASH_SCORE_LIST_HT = "CashScoreListH5:";


    //**********************************************************
    /**
     * 补贴商品总条数
     */
    String OLD_FOR_NEW_PAGES = "product:old_for_new:pages";
    /**
     * 当前补贴分段位置
     */
    String CUR_POSITION_INDEX_OLDFORNEW = "product:old_for_new:prosition";
    /**
     * 当前补贴分段数据
     */
    String CUR_POSITION_DATAS = "product:old_for_new:datas";
    /**
     * 用来记录当前补贴分段是否还有数据
     */
    String CUR_POSITION_DATAS_HAVEVALUE = "product:old_for_new:record";

    /**
     * 拼团商品当前分段数据
     */
    String CUR_GROUP_DATAS = "product:group:datas";
    /**
     * 用来记录当前拼团分段是否有数据
     */
    String CUR_GROUP_DATAS_HAVEVALUE = "product:group:record:";
    /**
     * 拼团商品总条数
     */
    String GROUP_PAGES = "product:group:pages";
    /**
     * 当前拼团分段位置
     */
    String CUR_POSITION_INDEX_GROUP = "product:group:prosition";

    //app新生活馆活动类型
    String CONFIG_ACTIVITYTYPES_APP = "mall:new:lifehall:index:activitytype";//ACTIVITY_TYPE  例如:CASH_COUPON,CASH_SCORE,GROUP_BUY
    //活动标题
    String PRODUCT_ACTIVITY_TITLE = "mall:new:lifehall:activity:title:";
    //活动图片
    String PRODUCT_ACTIVITY_IMG = "mall:new:lifehall:activity:img:";
    //活动描述
    String PRODUCT_ACTIVITY_DESC = "mall:new:lifehall:activity:desc:";

    //app新生活馆板块类型
    String CONFIG_FORUM_APP = "mall:new:lifehall:index:forum";//例如:1,11
    //板块标题
    String PRODUCT_FORUM_TITLE = "mall:new:lifehall:forum:title:";
    //板块图片
    String PRODUCT_FORUM_IMG = "mall:new:lifehall:forum:img:";
    //板块描述
    String PRODUCT_FORUM_DESC = "mall:new:lifehall:forum:desc:";

    //app活动开关全局配置
    String SWITCH_APP_ACTIVITY = "switch:app:activity:";

    /**
     * app用户使用补贴金额key
     */
    String RECORD_SUBSIDYKEY_USE_APP = "subsidykey:use:app:";

    String APP_ADDSCORE_NUM = "app:addscore:num:";

    /**
     * redis key  登录手机号验证码前缀
     */
    String REDIS_KEY_PREFIX_AUTH_CODE_LOGINPHONE = "portal:authCode:loginPhone";

    String NO_CHAT_KEY = "NOCHAT:";

    /**
     * 商品测评
     */
    String PRODUCT_ID_KEY = "PRODUCT:";

    String New_Preferential_KEY = "NewPreferential:";

    /**
     * 当次授权的授权码key
     */
    String APPAUTHCODE_KEY = "alipay:authcode:";
    /**
     * 支付宝授权码
     * 有效期365天
     * 请求url：https://openauth.alipay.com/oauth2/appToAppAuth.htm?app_id=2015101400446982&redirect_uri=https://guobao.quanminyanxuan.cn/api/mallv2/alipay/appAuthCodeCallback
     */
    String APPAUTHTOKEN_KEY = "alipay:authtoken:";

    String APPREFRESHTOKEN_KEY = "alipay:refresh:authtoken:";

    /**
     * vivo商业开放平台授权码
     * 有效期
     * 请求url: https://open-ad.vivo.com.cn/OAuth?clientId={您的client_id}&state={开发者标识}&redirectUri=https://api.hyshenzhen.com/api/mallv2/vivo/callback
     */
    String VIVOAUTHTOKEN_KEY = "vivo:authtoken:";
    String VIVOREFRESHTOKEN_KEY = "vivo:refresh:authtoken:";

    /**
     * 购买过这个商品的用户头像
     */
    String BUY_PRODUCT_USER_HEAD_IMG = "buy:product:user:headImg";

    /**
     * 商品好评率key
     */
    String PRODUCT_GOOD_RATIO = "productGoodRatio";

    /**
     * 订单是否支付成功信息key
     */
    String ORDER_PAY_INFO = "orderPayInfo:";

    /**
     * 商品库存预警提醒key
     */
    String STOCK_WARNING = "stock_warning:";

}
